home *** CD-ROM | disk | FTP | other *** search
- AUTOMATON*
-
- Rug
-
- A simple 256 state Moore neighbourhood automaton. Each cell is replaced by
- the average of it's eight neighbours plus a small increment. This
- produces waves of colour which sweep over the display. Compare with 'Hodge
- Podge'. Try a 200x100 window.
-
- INITIALISATION*
-
- 10DEF PROCdo
- 20*SetEval wrap on
- 30*SetEval i 2
- 40ENDPROC
-
- SCREEN*
-
- 10DEF PROCdo
- 20PROCsoup(0,256,1)
- 30ENDPROC
-
- CODE*
-
- ( READ_NEIG
- SUM_NEIG 3 >>
- <i> + == )
-
- END*